package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.math.BigDecimal;


public class FiterTypeEnum {


    @Getter
    @AllArgsConstructor
    public enum PeriodTypeEnum{
        ALL("全部",null,null,null,null),
        PERIOD_CONFIG_13("1-3个月",new BigDecimal("1").setScale(2,BigDecimal.ROUND_DOWN),
                new BigDecimal("3").setScale(2,BigDecimal.ROUND_DOWN),(byte)2,(byte)1),
        PERIOD_CONFIG_36("3-6个月",new BigDecimal("3").setScale(2,BigDecimal.ROUND_DOWN),
                new BigDecimal("6").setScale(2,BigDecimal.ROUND_DOWN),(byte)2,(byte)1),
        PERIOD_CONFIG_612("6-12个月",new BigDecimal("6").setScale(2,BigDecimal.ROUND_DOWN),
                new BigDecimal("12").setScale(2,BigDecimal.ROUND_DOWN),(byte)2,(byte)1),
        PERIOD_CONFIG_12("12个月以上",new BigDecimal("12").setScale(2,BigDecimal.ROUND_DOWN),null,(byte)2,(byte)1);
        private String title;
        private BigDecimal beginValue;
        private BigDecimal endValue;
        private Byte calSymbol;
        private Byte term;
    }

    @Getter
    @AllArgsConstructor
    public enum RateTypeEnum{
        ALL("全部",null,null,null),
        RATE_CONFIG_8("8%以上",new BigDecimal("8").setScale(2,BigDecimal.ROUND_DOWN),null,(byte)2),
        RATE_CONFIG_9("9%以上",new BigDecimal("9").setScale(2,BigDecimal.ROUND_DOWN),null,(byte)2),
        RATE_CONFIG_95("9.5%以上",new BigDecimal("9.5").setScale(2,BigDecimal.ROUND_DOWN),null,(byte)2),
        RATE_CONFIG_12("12%以上",new BigDecimal("12").setScale(2,BigDecimal.ROUND_DOWN),null,(byte)2);
        private String title;
        private BigDecimal beginValue;
        private BigDecimal endValue;
        private Byte calSymbol;
    }


}
